type = g_type_from_name (class_name);
if (type == G_TYPE_INVALID)
- return NULL;
+ {
+ GtkBuilder *builder = gtk_builder_new ();
+ type = gtk_builder_get_type_from_name (builder, class_name);
+ g_object_unref (builder);
+ if (type == G_TYPE_INVALID)
+ return NULL;
+ }
class = g_type_class_ref (type);
canonical_name = g_strdup (property_name);
{ "GtkGrid", "top-attach", 1 },
{ "GtkWidget", "hexpand", 0 },
{ "GtkWidget", "vexpand", 0 },
- { "GtkVBox", "expand", 1 },
{ NULL, NULL, 0 }
};
gchar *canonical_name;